package com.camel.docker.config;

import com.camel.core.config.BaseEnumConverterFactory;
import com.camel.docker.convertor.IntegerToEnumConverterFactory;
import org.springframework.context.annotation.Configuration;
import org.springframework.format.FormatterRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Configuration
public class WebAppConfigurer implements WebMvcConfigurer {

    @Override
    public void addFormatters(FormatterRegistry registry) {
//        registry.addConverterFactory(new BaseEnumConverterFactory());
        registry.addConverterFactory(new IntegerToEnumConverterFactory());
    }
}